﻿@namespace MudBlazor.Docs.Examples
@using System.Globalization


<MudGrid>
    <MudItem xs="12" sm="6">
        <MudNumericField T="double?" @bind-Value="_valueDe" Immediate Label="de-DE" Format="N2" Culture="@_de"/>
        <MudText>Value: @_valueDe.ToString()</MudText>
    </MudItem>
    <MudItem xs="12" sm="6">
        <MudNumericField T="double?" @bind-Value="_valueEn" Immediate Label="en-US" Format="N2" Culture="@_en"/>
        <MudText>Value: @_valueEn.ToString()</MudText>
    </MudItem>
</MudGrid>


@code {
    public CultureInfo _de=CultureInfo.GetCultureInfo("de-DE");
    public CultureInfo _en=CultureInfo.GetCultureInfo("en-US");

    public double? _valueDe = 1234.56;
    public double? _valueEn = 1234.56;
}